﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DreamIn.Structures.ServerDatabase.Entities;
using DreamIn.Structures.ServerDatabase.DataAccessLayer;

namespace DreamIn.Structures.ServerDatabase.BusinessLogic
{
    class ShareBL
    {
        internal List<ShareEntity> GetShares()
        {
            ShareDAL shareDAL = new ShareDAL();
            return shareDAL.GetShares();
        }
        internal void AddShare(int id_picture,int id_user)
        {
            ShareDAL shareDAL=new ShareDAL();
            shareDAL.AddShare(id_picture,id_user);
        }
        internal void DeleteShare(ShareEntity share)
        {
            ShareDAL shareDAL = new ShareDAL();
            shareDAL.DeleteShare(share);
        }
        internal void UpdateShare(int id_share, int id_picture, int id_user)
        {
            ShareDAL shareDAL = new ShareDAL();
            shareDAL.UpdateShare(id_share,id_picture, id_user);
        }
    }
}
